# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class TransTask(object):

    def __init__(self, taskId=None, packageType=None, templateId=None, templateGroupId=None, templateIds=None, format=None, definition=None, status=None, progress=None, errorCode=None, errorMessage=None, createTime=None, completeTime=None):
        """
        :param taskId: (Optional) 任务ID
        :param packageType: (Optional) 打包类型。取值范围：None, HLSPackage
        :param templateId: (Optional) 转码模板ID。非打包转码，包含此字段。
        :param templateGroupId: (Optional) 转码模板组ID。若是以模板组方式提交作业，生成的转码任务中包含此字段。
        :param templateIds: (Optional) 模板ID列表。打包转码，包含一个模板组中的多个打包转码模板。
        :param format: (Optional) 封装格式
        :param definition: (Optional) 清晰度
        :param status: (Optional) 任务状态。
submitted - 已提交
processing - 处理中
succeeded - 处理成功
failed - 处理失败

        :param progress: (Optional) 处理进度
        :param errorCode: (Optional) 错误码，只有处理失败时，才有此字段
        :param errorMessage: (Optional) 错误消息，只有处理失败时，才有此字段
        :param createTime: (Optional) 创建时间
        :param completeTime: (Optional) 完成时间
        """

        self.taskId = taskId
        self.packageType = packageType
        self.templateId = templateId
        self.templateGroupId = templateGroupId
        self.templateIds = templateIds
        self.format = format
        self.definition = definition
        self.status = status
        self.progress = progress
        self.errorCode = errorCode
        self.errorMessage = errorMessage
        self.createTime = createTime
        self.completeTime = completeTime
